//
//  ScanCodeView.h
//  YuanXinCamera
//
//  Created by 晏德智 on 2016/11/11.
//  Copyright © 2016年 晏德智. All rights reserved.
//

#import <React/RCTView.h>

@interface ScanCodeView : RCTView

@property (nonatomic, assign) UIEdgeInsets contentInset;

@property (nonatomic, assign) BOOL autoStartRunning;

@property (nonatomic, assign) CGSize scanSize;

@property (nonatomic, strong) UIColor  *maskViewBackgroundColor;

@property (nonatomic, strong) UIColor  *maskViewBorderColorColor;

/**
 * 当扫码发生变化时输
 */
@property (nonatomic, copy) RCTDirectEventBlock onCodeRead;

@property (nonatomic, copy) RCTDirectEventBlock onError;

- (void)stopRunning;
- (void)startRunning;

- (void)flashOpen;
- (void)flashClose;

@end
